package com.fzu.commonutil.mapper;

import com.fzu.commonutil.entity.RoleResource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyq
 * @since 2023-04-11
 */
public interface RoleResourceMapper extends BaseMapper<RoleResource> {


    /**
     * 删除旧的绑定管理
     * @param roleId
     */
    @Delete("delete from role_resource where role_id = #{roleId}")
    void deleteOld(@Param("roleId") Integer roleId);
}
